<template>
  <div>
    <el-button type="primary">Primary</el-button>
  </div>
</template>

<script setup name="index">
import { getAllSource } from "@/api/demo";
import { usePermissionStore } from "../../store/modules/permission";
// import { useUserPiniaStore } from "../../store/modules/user";

const permissionStore = usePermissionStore();
// const userStore = useUserPiniaStore();

const fetchData = async () => {
  const data = {
    type: 1,
  };
  const res = await getAllSource(data);
  console.log(res);
  // $message.error(message);
};
fetchData();
function logout() {
  // userStore.logout();
  $message.success("已退出登录");
}
</script>
